import { Audio } from "../resource/audio";
import { AudioClip } from "../resource/audio_clip";


class AudioEngine {

    static {
        globalThis.__AudioEngine__ = new AudioEngine();
    }

    play(clip: AudioClip): Audio {
        return Deno.core.ops.opPlayAudioClip(clip);
    }


}

export const audio = new AudioEngine()